/*
 *  Copyright 2020-2025 the original author or authors.
 *  You cannot use this file unless authorized by the author.
 */

package org.ipig.web.filter;

import org.springframework.web.filter.CharacterEncodingFilter;

/**
 * GenericCharacterEncodingFilter
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id$$
 * @since 1.0
 */
//@WebFilter(filterName = "GenericCharacterEncodingFilter", urlPatterns = {"/*"})
public class GenericCharacterEncodingFilter
        extends CharacterEncodingFilter {
    public static final String ENCODING = "UTF-8";
    public static final Boolean FORCE_ENCODING = true;


    public GenericCharacterEncodingFilter() {
        super(ENCODING, FORCE_ENCODING.booleanValue());
    }


    public void setEncoding(String encoding) {
        super.setEncoding(ENCODING);
    }


    public void setForceEncoding(boolean forceEncoding) {
        super.setForceEncoding(FORCE_ENCODING.booleanValue());
    }
}